home *** CD-ROM | disk | FTP | other *** search
- head 1.2;
- branch ;
- access ;
- symbols srv030:1.2 srv027:1.2 srv026:1.2 srv024:1.2 srv021:1.2 srv019:1.2 srv018:1.2 srv016:1.2 srv014:1.2 srv010:1.2 srv008:1.2 srv007:1.2 srv006:1.2 srv005:1.2 srv004:1.2 srv003:1.2 srv002:1.2 srv001:1.2;
- locks ; strict;
- comment @ * @;
-
-
- 1.2
- date 91.12.01.22.18.48; author kupfer; state Exp;
- branches ;
- next 1.1;
-
- 1.1
- date 91.11.21.18.44.17; author kupfer; state Exp;
- branches ;
- next ;
-
-
- desc
- @@
-
-
- 1.2
- log
- @Changes for sprited.
- @
- text
- @/*
- * assert.h --
- *
- * Definition of assert() macro.
- *
- * Copyright 1988 Regents of the University of California
- * Permission to use, copy, modify, and distribute this
- * software and its documentation for any purpose and without
- * fee is hereby granted, provided that the above copyright
- * notice appear in all copies. The University of California
- * makes no representations about the suitability of this
- * software for any purpose. It is provided "as is" without
- * express or implied warranty.
- *
- * $Header: /r3/kupfer/spriteserver/include/user/RCS/assert.h,v 1.1 91/11/21 18:44:17 kupfer Exp Locker: kupfer $
- */
-
- #include <cfuncproto.h>
-
- #ifdef assert
- #undef assert
- #endif
-
- #ifdef _assert
- #undef _assert
- #endif
-
- #ifndef NDEBUG
- #if defined(KERNEL) || defined(SPRITED)
- #ifdef __STDC__
-
- #define _assert(ex) { if (!(ex)) { panic(\
- "Assertion failed: (" #ex ") file \"%s\", line %d\n", __FILE__, __LINE__);}}
-
- #else /* __STDC__ */
-
- #define _assert(ex) { if (!(ex)) { panic(\
- "Assertion failed: file \"%s\", line %d\n", __FILE__, __LINE__);}}
- #endif /* __STDC__ */
-
- #else /* KERNEL || SPRITED */
-
- _EXTERN void __eprintf _ARGS_ ((_CONST char *string,
- int line, _CONST char *filename));
-
- #ifdef __STDC__
-
- #define _assert(ex) { if (!(ex)) { __eprintf( \
- "Assertion failed: (" #ex ") line %d of \"%s\"\n", __LINE__, __FILE__);\
- abort();}}
-
- #else /* __STDC__ */
-
- #define _assert(ex) { if (!(ex)) { __eprintf( \
- "Assertion failed: line %d of \"%s\"\n", __LINE__, __FILE__);\
- abort();}}
-
- #endif /* __STDC__ */
-
- #endif /* KERNEL || SPRITED */
-
- # define assert(ex) _assert(ex)
- # else /* !NDEBUG */
- # define _assert(ex)
- # define assert(ex)
- # endif /* !NDEBUG */
-
- @
-
-
- 1.1
- log
- @Initial revision
- @
- text
- @d15 1
- a15 1
- * $Header: /sprite/src/lib/include/RCS/assert.h,v 1.6 90/11/06 17:21:14 rab Exp $
- d29 1
- a29 1
- #ifdef KERNEL
- d41 1
- a41 1
- #else /* KERNEL */
- d60 1
- a60 1
- #endif /* KERNEL */
- @
-